<?php
//var_export($_POST);
//echo json_encode($_POST);
include  __DIR__.'/common/common.php';//添加
$title=addslashes($_POST['title']);
$content=addslashes($_POST['content']);
$sql="INSERT INTO `baidu`.`article` (`title`,`content`)
 VALUES ('$title', '$content')";
$bool=mysqli_query($mysql,$sql);
if ($bool)
{
    echo 'ok';
}